package com.example.pei.ithinklearnt.bean;

import android.support.annotation.NonNull;

import java.io.Serializable;
import java.util.List;

import cn.bmob.v3.BmobObject;

public class UserSkill extends BmobObject implements Serializable,Comparable<UserSkill> {
    private UserInfo user;
    private List<String> strongSkills;     //会的技能
    private List<String> weakSkills;       //想学的技能

    public int weight=0;     //这个用户和当前用户技能匹配的权值

    public UserInfo getUser() {return user;}
    public void setUser(UserInfo use) {this.user = use;}
    public void setStrongSkills(List<String> strongSkills){this.strongSkills=strongSkills;}
    public List<String> getStrongSkills(){return strongSkills;}
    public void setWeakSkills(List<String> weakSkills){this.weakSkills=weakSkills;}
    public List<String> getWeakSkills(){return weakSkills;}

    @Override
    public int compareTo(@NonNull UserSkill o) {
        if(this.weight<o.weight){
            return 1;
        }else if(this.weight>o.weight){
            return -1;
        }else{
            return 0;
        }

    }
}